package com.doubao.chat.dto.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class GetMessageListRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 会话ID (与设备ID二选一)
     */
    private Long sessionId;

    /**
     * 设备ID (与会话ID二选一)
     */
    private Long deviceId;

    /**
     * 页码
     */
    private Integer page = 1;

    /**
     * 每页大小
     */
    private Integer size = 20;

    /**
     * 最大消息ID，用于分页获取历史消息，可选
     */
    private Long maxId;
}